﻿
Partial Class masterPage
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Page.PreviousPage IsNot Nothing Then
            Dim txtKeyword = DirectCast(Page.PreviousPage.FindControl("txtKeyword"), TextBox)
            If txtKeyword IsNot Nothing Then
                Session("SearchText") = txtKeyword.Text
            End If
        End If
    End Sub
End Class

